import React from 'react'

import Pagination from '../../../../../hrpub/common/components/Pagination/index';

import render from '../../../../../hrpub/common/frame/render';

import TableAction from './tableAction';

import './index.less'

import { base } from 'nc-lightapp-front';

let { NCSelect, NCRow, NCCol, NCCheckbox, NCButton, NCSwitch, NCMenu,NCItem, NCIcon } = base;

let NCOption = NCSelect.NCOption;

export default render({
    actions: {
        action: TableAction
    },
    state: {
        flag:true
    },
})(({props, action, state}) => {
    const { button, editTable } = props;
    let { createEditTable } = editTable;
    return (
        <div className="nc-bill-table-area">
            { createEditTable(
                'dimis_item_list',    //表格id  props.areacode
                {
                    showIndex: true,
                    onAfterEvent: props.afterEventFn,
                    onRowClick: props.clickHandle,
                    height: props.height || '450px'
                }
            )}
            {/* <Pagination/> */}
        </div>
        
    );

});